package test;

public class Singleton {
    private static Singleton INSTANCE = null;
    int x1, x2, x3, x4;
    int x5, x6, x7, x8;
    int y1, y2, y3, y4;
    int y5, y6, y7, y8;
    private Singleton (int v){
        x1 = v;
        x2 = v;
        x3 = v;
        x4 = v;
        x5 = v;
        x6 = v;
        x7 = v;
        x8 = v;
        y1 = v;
        y2 = v;
        y3 = v;
        y4 = v;
        y5 = v;
        y6 = v;
        y7 = v;
        y8 = v;
    }
	public static Singleton getInstance(int v) {
        if (INSTANCE == null) {
            synchronized (Singleton.class) {
                if (INSTANCE == null) {
                    INSTANCE = new Singleton(v);
                }
            }
        }
        return INSTANCE;
    }

    public static void main(String[] args) {

    }
}